package ru.xpparty.scanner;

import org.apache.commons.cli.PosixParser;

/**
 * Entry point of scanner.
 * Plays role of dependency injection container :-)
 * 
 * @author xp.party
 *
 */
public class Main {
	public static void main(String[] args) {
		Parser parser = new ParserImpl(new PosixParser());
		Request request = parser.parse(args);
		Scanner scanner = new ScannerImpl(new SocketScannerFactoryImpl());
		System.out.println(scanner.scan(request).toString());
	}
}
